package com.feeling.oafeeling.pojo;

import lombok.*;

import java.util.*;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : LiuLi
 * @create 2023/6/24 12:08
 */
@AllArgsConstructor
@NoArgsConstructor
@Setter
@Getter
@ToString
public class TaskList {

  //所有任务列表
  private HashSet<FlOrder> allTask;

  // 完成任务列表
  private HashSet<FlOrder> doneTask;

  //未完成任务列表
  private HashSet<FlOrder> noDoneTask;

  private HashSet<FlOrder> userDoneTask;

  private HashSet<FlOrder> userNoDoneTask;

  private int allTaskNum;

  private int doneTaskNum;

  private int onDoneTaskNum;

  @Override
  public boolean equals(Object o) {
    if (this == o){
      return true;
    }
    if (o == null || getClass() != o.getClass()){
      return false;
    }
    TaskList taskList = (TaskList) o;
    return allTaskNum == taskList.allTaskNum && doneTaskNum == taskList.doneTaskNum && onDoneTaskNum == taskList.onDoneTaskNum && Objects.equals(allTask, taskList.allTask) && Objects.equals(doneTask, taskList.doneTask) && Objects.equals(noDoneTask, taskList.noDoneTask) && Objects.equals(userDoneTask, taskList.userDoneTask) && Objects.equals(userNoDoneTask, taskList.userNoDoneTask);
  }

  @Override
  public int hashCode() {
    return Objects.hash(allTask, doneTask, noDoneTask, userDoneTask, userNoDoneTask, allTaskNum, doneTaskNum, onDoneTaskNum);
  }
}
